//
//  CSYShowLinkViewController.swift
//  CSYMicroBlockSina
//
//  Created by 姚彦兆 on 15/11/22.
//  Copyright © 2015年 姚彦兆. All rights reserved.
//

import UIKit

class CSYShowLinkViewController: UIViewController {

    
    lazy var webView : UIWebView = UIWebView()
    
    let targetURL : NSURL
    
    init(url : NSURL , blogModel : CSYMyMicroBlogModel){
    
        self.targetURL = url
        
        super.init(nibName: nil, bundle: nil)
        
        title = blogModel.userMessageModel?.name
    
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func loadView() {
        
        view = webView
        
    }
    
    override func viewDidLoad() {
        
        webView.loadRequest(NSURLRequest(URL: targetURL))
        
    }

}
